use std::collections::HashSet;

pub fn new_count_distinct(input_str: &str) -> usize {
    let mut set = HashSet::new();
    input_str.split(',').filter(|&x| set.insert(x)).count()
}
